package com.student.enrollment.feign;

import com.student.common.entity.Student;
import com.student.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 学生服务Feign客户端
 * 
 * @author student
 * @date 2025
 */
@FeignClient(name = "student-service", path = "/student")
public interface StudentServiceClient {
    
    /**
     * 根据学生ID获取学生信息
     */
    @GetMapping("/{id}")
    Result<Student> getStudentById(@PathVariable("id") String studentId);
}

